import Request from "@/Request";

class GetInfo extends Request{
  
  //通过部门id查询部门信息
  public selectDepartmentById(id:number) {
    return this.post("/Association/selectDepartmentById", {id:id});
  }

   //通过社团id查询社团信息
   public selectById(id:number ) {
    return this.post("/Association/selectById", {id:id});
  }

  //查询报名的人
  //若id为空则查询报名该社团的所有人，若id不为空则查询具体报名某部门的人
  public selectApplyUser(id?:number) {
    return this.post('/User/selectApplyUser',{id:id})
  }

  //通过学生学号查询学生信息
  public selectApplyByStuNum(data: string) {
    return this.post('/User/selectApplyByStuNum', {studentNumber:data});
  }

  //查询社团名下的照片墙
  public selectPhotoWall(id:number) {
    return this.post('/Association/selectPhotoWall', {id:id});
  }
}
export default new GetInfo();